package com.SumAndSub;

import java.util.Scanner;

/**
 * ClassName: pp
 * Package:
 * Description:
 *
 * @Author 软件232班——欧阳昊淼
 * @Create 2024/8/28 15:00
 * @Version 17.0.2
 */
public class pp {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入第一个整数：");
        int num1 = sc.nextInt();

        System.out.println("请输入第二个整数：");
        int num2 = sc.nextInt();

        int sum = num1 +num2;
        int sub = num1-num2;

        System.out.println("两数之和为：" + sum);
        System.out.println("两数之差为：" + sub);
        sc.close();





    }
}
